<style>

.content_9_right_8{ width:100%;}
.content_9_right_8>li{ padding:15px 10px; width:100%;}
.content_9_right_8>li:hover{ background-color:#ececec;}
.content_9_right_8>li>a{ display:block; width:100%; height:auto; border-bottom:solid 1px #ececec;}

.content_9_right_9{ width:100%;display: flex;height:auto;}
.content_9_right_10,.content_9_right_11{float:left;}
.content_9_right_10{ width:145px;margin-right: 10px;}
.content_9_right_10>img{ width:100%; height:100%; display:block;}
.content_9_right_11{ width:135px; float:right;}
.content_9_right_12{ font-size:14px; width:100%;}
.content_9_right_13{ width:100%; font-size:10px; color:#2d2d2d; margin-top:5px;}
.content_9_right_13>p{ margin:0px;}
.content_9_right_14{ color:#0076ff;}
.content_9_right_15{ font-size:13px; color:#333333; line-height:18px;margin-top: 5px;}

.ui-portlet {margin:0 0 20px;background: #FFF;
    overflow: hidden; box-shadow: 0px 0px 10px #ccc; -moz-box-shadow: 0px 0px 10px #ccc;
    -ms-box-shadow: 0px 0px 10px #ccc;-o-box-shadow: 0px 0px 10px #ccc;-webkit-box-shadow: 0px 0px 10px #ccc;}

 #maincontent {background-color: transparent;}
body.boxed{width:auto;box-shadow: none;}
#param-tb {
	border: 1px solid #C5D7ED;
	border-collapse: collapse;
	color: #333333;
	margin: 0 -1px;
}
#param-tb th, #param-tb td {
	border: 1px solid #C5D7ED;
	line-height: 28px;
	padding: 0 15px;
}
#param-tb .val{
	width:390px;
}
#param-tb .val span {
	display: block;
	line-height: 28px;
}
</style><style>

	#maincontent {background-color: transparent;}
	body.boxed{width:auto;box-shadow: none;}
	#top{margin-bottom: 15px;}
	#param-tb {
		border: 1px solid #C5D7ED;
		border-collapse: collapse;
		color: #333333;
		margin: 0 -1px;
	}
	#param-tb th, #param-tb td {
		border: 1px solid #C5D7ED;
		line-height: 28px;
		padding: 0 15px;
	}
	#param-tb .val{
		width:390px;
	}
	#param-tb .val span {
		display: block;
		line-height: 28px;
	}
	.vod-item{display:flex;line-height: 32px;border-bottom: 1px solid #eee;}
	.vod-item:last-child {
		border: 0 none;
	}
	.vod-num{width:60px;text-align: center;}
	.vod-name{font-size:16px;flex:0 0 70%;}
	.vod-link{text-align: right;flex:1;}
@media (max-width: 768px) {
	.vod-num{width:30px;text-align: center;}
	.vod-name{font-size:16px;flex:0 0 50%;}
}
</style>
<div class="container">
<div  class="row">
	<div class="col-xs-12" style="margin-bottom: 35px;">
		<div style="{{if !$is_mobile}}padding: 30px 40px; {{/if}}background-color: #fff;">
		
	    <div  id="productinfo"  class="row" class="clearfix">
	    	<div class=" col-md-5 col-xs-12">
	    		{{if !empty($upload_files['coverimg']) && count($upload_files['coverimg'])>1}}
	    			{{template Elements/images_zoom}}
	    		{{else}}
	    			<img src="{{$Album['Album']['coverimg']}}" class="coverimg">
	    		{{/if}}
	    	</div>
	    	<div class="col-md-5 col-xs-12">
	    		<h2 style="font-size: 24px;"><?php echo $Album['Album']['name']; ?></h2>
			    <div class="Content-info">
			   阅读次数： 
			   <span class="ui-stats-num" id="Stats-Album-{{$Album['Album']['id']}}-view_nums"><?php echo $Album['Album']['view_nums']; ?></span>
			    </div>

	            <p> {{nl2br($Album['Album']['seodescription'])}}</p>

				{{if $Album['Album']['price'] > 0 }}
					<h1><span class="product-price" style="font-size: 36px;">{{format_price($Album['Album']['price'])}}</span></h1>
					{{if $is_mobile && $Album['Album']['thirdurl']}}
						<p><a style="float:left;" class="btn btn-primary" href="{{$Album['Album']['thirdurl']}}">立即购买 </a></p>
					{{elseif $Album['Album']['thirdurl']}}
						<p class="alert alert-warning"><span style="font-size:20px;">微信扫码右侧二维码购买本课程 <i class="fa fa-location-arrow"></i></span></p>
					{{else}}
						<p><a aria-disabled="false" style="float:left;" class="btn btn-primary" onclick="return directBuy({{$Album['Album']['id']}},1,'Album');" href="javascript:void(0)">立即购买 </a></p>
					{{/if}}
				{{else}}
					<h1><span class="product-price" style="font-size: 36px;">免费学习</span></h1>
				{{/if}}
 			</div>
 			{{if !$is_mobile && $Album['Album']['qrimg']}}
 			<div class="col-md-2 col-xs-12 text-center">
 				<div style="margin-top:30px;">
 					<img src="{{$Album['Album']['qrimg']}}" style="width:100%;" class="qrimg">
 					<p style="margin-top:23px;"> 扫码手机购买 </p>
 				</div>
 			</div>
 			 {{/if}}
	    </div>
		</div>
	</div>
</div>
<div  class="row">
	<div  class="col-md-8 col-sm-12">

		<div  style="background-color: #ffffff; box-shadow: 0px 0px 10px #ccc;-moz-box-shadow: 0px 0px 10px #ccc;-ms-box-shadow: 0px 0px 10px #ccc;-o-box-shadow: 0px 0px 10px #ccc;-webkit-box-shadow: 0px 0px 10px #ccc; margin-bottom: 20px;">

			<ul style="list-style-type: none;border-bottom: solid 1px #e3e3e3;margin: 0px; padding: 0px;height: 50px;">
				<li style="float: left;font-size: 18px;line-height: 50px;  padding: 0 8px;  border-top: solid 2px #0076ff;  color: #0076ff;">课程选集</li>
			</ul>
			<div id="product-description">
				<div class="Content-body" style="padding: 20px;">
					<portlet model="Vod" cache="no" conditions="album_id=$id" showpages="0"
						info="fields[]=Vod.*" portlet="body" list_tpl="inner" limit="200" order="priority asc">
							<div class="vod-item clearfix">
								<div class="vod-num">{{$item['priority']}}</div>
								<div class="vod-name">
									<p><a href="/vods/view/{{$item['id']}}.html">{{$item['name']}}</a>

									</p>
								</div>
								<div><small>{{format_time($item['duration'])}}</small></div>
								<div class="vod-link"><a href="/vods/view/{{$item['id']}}.html">
									{{if $item['is_free']}}免费试听{{else}}立即学习{{/if}}</a></div>
							</div>
					</portlet>
				</div>
			</div>
		</div>


<div  style="background-color: #ffffff; box-shadow: 0px 0px 10px #ccc;-moz-box-shadow: 0px 0px 10px #ccc;-ms-box-shadow: 0px 0px 10px #ccc;-o-box-shadow: 0px 0px 10px #ccc;-webkit-box-shadow: 0px 0px 10px #ccc; padding-bottom: 20px;">

<ul style="list-style-type: none;border-bottom: solid 1px #e3e3e3;margin: 0px; padding: 0px;height: 50px;">
<li style="float: left;font-size: 18px;line-height: 50px;  padding: 0 8px;  border-top: solid 2px #0076ff;  color: #0076ff;">课程介绍</li>
</ul>
	<div id="product-description">
		<div class="Content-body" style="padding: 20px;">
		    	<?php echo $Album['Album']['content']; ?>
		</div>
	</div>	
</div>
	</div> <!-- end col-md-9 -->
	
	<div  class="col-md-4 col-sm-12">
		<div class="ui-portlet">
			<div class="text-center">
				<div style="margin-top:20px;border-radius:50%;overflow:hidden;width:80px;height:80px;display:inline-block;background-image:url({{$Album['Album']['avatar']}}); background-repeat: no-repeat;background-size: contain; background-position: center center;">
					
				</div>
				<p>{{$Album['Album']['author']}}</p>
			</div>
			<hr>
			<div style="padding:15px;">
				<p>{{nl2br($Album['Album']['author_des'])}}</p>
			</div>
		</div>
		
		<portlet
		model="Album" cached="900" showpages="0" title="热门课程"	
info="fields[]=Album.id&fields[]=Album.name&fields[]=Album.coverimg&fields[]=Album.author&fields[]=Album.price&fields[]=Album.summary&order=view_nums desc"
		portlet="default" list_tpl="inner" limit="8" order="view_nums desc" ulclass="content_9_right_8">
			<li><a href="/albums/view/{{$item['id']}}.html">
                    	<div class="content_9_right_9 clearfix">
                        	<div class="content_9_right_10"><img src="{{$item['coverimg']}}"></div>
                            <div class="content_9_right_11">
                            	<div class="content_9_right_12">{{$item['name']}}</div>
                                <div class="content_9_right_13">
                                	<p style="margin-bottom:15px;">{{$item['author']}}</p>
                                    <!-- <p><span class="glyphicon glyphicon-user"></span>6666</p> -->
                                    <p><span class="product-price">{{format_price($item['price'])}}</span></p>
                                    <p class="content_9_right_14">
                                    	<span class="glyphicon glyphicon-star"></span>
                                        <span class="glyphicon glyphicon-star"></span>
                                        <span class="glyphicon glyphicon-star"></span>
                                        <span class="glyphicon glyphicon-star"></span>
                                        <span class="glyphicon glyphicon-star"></span>
                                    </p>
                                </div>
                            </div>
                        </div>
                        <div class="content_9_right_15" style="text-indent:2em;">{{$item['summary']}}</div>
                    </a>
            </li>
		</portlet>
		
		
	</div>
</div>
</div>